﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RendicionCajaGrid.ascx.cs" 
Inherits="UILGestion.ObraAdmin.RendicionCaja.RendicionCajaGrid" %>
<%@ Register Assembly="WebLib" Namespace="WebLib" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<input id="idParent" type="hidden"  runat="server"/>
<input id="idRendicion" type="hidden"  runat="server"/>
<input id="idEstado" type="hidden"  runat="server"/>
<input id="IGVLBL" type="hidden"  runat="server"/>



<asp:GridView ID="itemGridView" runat="server"  Font-Size="X-Small"
                              AutoGenerateColumns="False" 
                              CellPadding="4" DataKeyNames="idInternal"  
                              SkinID="GridView"
                              ShowFooter="true">
                              <Columns>
                                  <asp:TemplateField HeaderText="FECHA" HeaderStyle-Width="110px" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="fechalbl" runat="server" Text='<%# Eval("fechaStr")%>'></asp:Label>
                                       </ItemTemplate>
                                       <EditItemTemplate>
                                           <asp:TextBox ID="fechaTxt" runat="server" Text='<%# Eval("fechaStr")%>' Width="70px" />
                                           <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </EditItemTemplate>
                                      <FooterTemplate>
                                          <asp:TextBox ID="fechaTxt" runat="server"  Width="70px" TabIndex="0" />
                                          <asp:ImageButton ID="ImageButton1" runat="Server" 
                                              AlternateText="Click aqui para mostrar calendario" font-names="Arial" 
                                              Font-Size="X-Small" ImageUrl="~/Images/month.gif"  />
                                              <asp:CalendarExtender ID="CalendarExtender2" runat="server"     
                                                     TargetControlID="fechaTxt"
                                                       PopupButtonID="ImageButton1"></asp:CalendarExtender>
                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="110px"></HeaderStyle>
                                     
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText="T/D" HeaderStyle-Width="100px" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="tipoDocumentolbl" runat="server" Text='<%# Eval("tipodocumento")%>'></asp:Label>
                                       </ItemTemplate>
                                         <EditItemTemplate>
                                             <asp:DropDownList ID="tipodocumentoDDL" runat="server" Text='<%# Eval("tipodocumento")%>' Width="100%"  />
                                            
                                           
                                      </EditItemTemplate>

                                      <FooterTemplate>
                                      <asp:DropDownList ID="tipodocumentoDDL" runat="server"  Width="100%"  TabIndex="1"  />
                                          
                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="100px"></HeaderStyle>
                                     
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText="Nro DOC" HeaderStyle-Width="90px" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="nroDocumentolbl" runat="server" Text='<%# Eval("numdocumento")%>'></asp:Label>
                                       </ItemTemplate>
                                        <EditItemTemplate>
                                           <asp:TextBox ID="nroDocumentoTxt" runat="server" Text='<%# Eval("numdocumento")%>' Width="100%" />
                                      </EditItemTemplate>

                                      <FooterTemplate>
                                            <asp:TextBox ID="nroDocumentoTxt" runat="server"  Width="100%" TabIndex="2" />
                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="90px"></HeaderStyle>
                                     
                                  </asp:TemplateField>
                                  <asp:TemplateField HeaderText="BENEFICIARIO" HeaderStyle-Width="330px" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="descripcionlbl" runat="server" Text='<%# Eval("descripcion")%>'></asp:Label>
                                       </ItemTemplate>
                                      <EditItemTemplate>
                                           <asp:TextBox ID="descripcionTxt" runat="server" Text='<%# Eval("descripcion")%>' Width="100%" />
                                      </EditItemTemplate>
                                <FooterTemplate>

                                <table>
                                <tr>
                                <td colspan="3">
                                    <cc1:Input ID="descripcionTxt" runat="server" backcolor="#DFE8F6" 
                                          DataType="List"  NumColum="2" onchange="javascript:validarProveedor(this);" 
                                          method="GetProveedor" 
                                          OnSelect="SelectProveedor" Width="100%" TabIndex="3" /></td>
                                </tr>
                                <tr>
                                <td align="right">NOMBRE:</td>
                                <td colspan="2"><cc1:Input ID="descripcion1Txt" runat="server"  backcolor="Transparent" BorderStyle="None" ReadOnly="true"
                                         Width="300px" TabIndex="3" />
                                </td>
                                </tr>
                                <tr>
                                <td align="right">RUC/DNI:</td>
                                <td>
                                <cc1:Input ID="rucTXT" runat="server" backcolor="Transparent" BorderStyle="None" ReadOnly="true"
                                          Width="100px"  />
                               ID: <cc1:Input ID="idProveedorTXT" runat="server" backcolor="Transparent"  
                                        ReadOnly="true" BorderStyle="None" Width="30px"/>
                                          </td>
                                          <td>
                                          TIPO:<cc1:Input ID="tipoTXT" runat="server" backcolor="Transparent"  
                                                  ReadOnly="true" BorderStyle="None" Width="90px"/>
                                          </td>
                                </tr>
                                
                                </table>

                                     <%-- <asp:TextBox ID="descripcionTxt" runat="server" Text='<%# Eval("descripcion")%>' Width="100%" />--%>
                                       

                                            
                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="330px"></HeaderStyle>
                                     
                                  </asp:TemplateField>
                                <asp:TemplateField HeaderText="CONCEPTO" HeaderStyle-Width="200px" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="conceptooDbl" runat="server" Text='<%# Eval("concepto")%>'></asp:Label>
                                       </ItemTemplate>
                                      <EditItemTemplate>
                                           <asp:TextBox ID="conceptoTxt" runat="server" Text='<%# Eval("concepto")%>' Width="100%" />
                                      </EditItemTemplate>

                                      <FooterTemplate>
                                            <asp:TextBox ID="conceptoTxt" runat="server"  Width="100%" TabIndex="4"/>
                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="200px"></HeaderStyle>
                                     
                                  </asp:TemplateField>

                                   <asp:TemplateField HeaderText="TOTAL" HeaderStyle-Width="95px" ItemStyle-HorizontalAlign="Right" FooterStyle-VerticalAlign="Top">
                                      <ItemTemplate>
                                          <asp:Label ID="totalDbl" runat="server" Text='<%# Eval("total")%>'></asp:Label>
                                       </ItemTemplate>
                                     <EditItemTemplate>
                                           <cc1:Input ID="totalTxt" runat="server" Text='<%# Eval("total")%>' Width="100%"  DataType="Double" />
                                         
                                      </EditItemTemplate>

                                      <FooterTemplate>
                                            <cc1:Input ID="totalTxt" runat="server"  Width="100%" DataType="Double" TabIndex="5"/>

                                      </FooterTemplate>
                                     
<FooterStyle VerticalAlign="Top"></FooterStyle>

<HeaderStyle Width="95px"></HeaderStyle>

<ItemStyle HorizontalAlign="Right"></ItemStyle>
                                     
                                  </asp:TemplateField>
                              
                                  <asp:TemplateField>
                                      <ItemTemplate>

                                        
                                          <asp:ImageButton ID="lnkRemove" runat="server" BorderColor="Control" 
                                              CommandArgument='<%# Eval("idInternal")%>' ImageUrl="~/Images/delete.gif" 
                                              OnClick="DeleteItem" OnClientClick="return confirm('Usted quiere eliminar?')" />
                                       </ItemTemplate>
                                      <FooterTemplate>

                                       
                                          <asp:Button ID="btnAdd" runat="server"   OnClick="AddItem" 
                                              Text="Añadir" />
                                        
                                      </FooterTemplate>
                                  </asp:TemplateField>
                              </Columns>
                              </asp:GridView>
